﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Hx.ADSyncPlatform.WebApi.Model
{
    public class CreateOrUpdatePlatManagerRequest
    {
        public Guid UserId { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "用户名必填")]
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        //[MinLength(6, ErrorMessage = "密码至少6位")]
        public string PassWord { get; set; }

        //[Required(AllowEmptyStrings = false, ErrorMessage = "显示名必填")]
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string DisplayName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Company { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Department { get; set; }


        //[EmailAddress(ErrorMessage = "邮箱地址不合法")]
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Mail { get; set; }



        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string TelephoneNumber { get; set; }

        //[DisplayFormat(ConvertEmptyStringToNull = true)]
        //[Phone(ErrorMessage = "手机号不合法")]

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Mobile { get; set; }


        public bool IsEnable { get; set; }


        public List<Guid> RoleIds { get; set; }
    }
}
